INSERT INTO `sys_menu` (parent_id,name,path,component,icon,sort,visible,redirect,gmt_create,gmt_modified,type) VALUES (1, '${tableComment}', '${classname}', '<#if moduleName??>${moduleName}</#if>/${classname}/index', '${classname}', 1, 1, NULL, NOW(), NOW(), '1');

INSERT INTO `sys_permission` (name,menu_id,url_perm,btn_perm,gmt_create,gmt_modified) VALUES ('查看${tableComment}', 2, 'GET:/youlai-admin/api/v1/${classname}/*', '<#if moduleName??>${moduleName}</#if>:${classname}:view', NOW(), NOW());
INSERT INTO `sys_permission` (name,menu_id,url_perm,btn_perm,gmt_create,gmt_modified) VALUES ('编辑${tableComment}', 2, 'PUT:/youlai-admin/${classname}/*',  '<#if moduleName??>${moduleName}</#if>:${classname}:edit', NOW(), NOW());
INSERT INTO `sys_permission` (name,menu_id,url_perm,btn_perm,gmt_create,gmt_modified) VALUES ('新增${tableComment}', 2, 'POST:/youlai-admin/api/v1/${classname}', '<#if moduleName??>${moduleName}</#if>:${classname}:add', NOW(), NOW());
INSERT INTO `sys_permission` (name,menu_id,url_perm,btn_perm,gmt_create,gmt_modified) VALUES ('删除${tableComment}', 2, 'DELETE:/youlai-admin/api/v1/${classname}/*',  '<#if moduleName??>${moduleName}</#if>:${classname}:delete', NOW(), NOW());